package com.study.examples.controller;

import com.study.examples.entity.UserInfo;
import com.study.examples.service.IUserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName: UserInfoController
 * @Description:
 * @author: limingxing
 * @Date: 2020-01-15 15:38
 */
@Api(value = "用户操作",tags = "用户信息操作API")
@RestController
public class UserInfoController {

    @Autowired
    private IUserInfoService userInfoService;



    @ApiOperation("获取列表")
    @RequestMapping(value = "/getList", method = RequestMethod.GET)
    public Object getList() {
        List<UserInfo> response = userInfoService.getList();

        return response;
    }
}
